package com.xxyf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author xxyf
 * @since 2022-12-14
 */
@Data
@Accessors(chain = true)
@TableName("username")
@ApiModel(value = "Username对象", description = "")
public class Username implements Serializable {

  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("账号")
  @TableField("account")
  private String account;

  @ApiModelProperty("密码")
  @TableField("password")
  private String password;

  @ApiModelProperty("用户名")
  @TableField("username")
  private String username;

  @ApiModelProperty("管理")
  @TableField("administrator")
  private Integer administrator;

  @ApiModelProperty("注册时间")
  @TableField("gtm_cretae")
  private Timestamp gtmCretae;

  @ApiModelProperty("更新时间")
  @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
  private Timestamp gmtModified;

  @ApiModelProperty("乐观锁")
  @TableField("version")
  @Version
  private Integer version;

  @ApiModelProperty("删除")
  @TableField("deleted")
  @TableLogic
  private Integer deleted;

  @ApiModelProperty("隐藏密码")
  @TableField("admin_user_name")
  private String adminUserName;

  @ApiModelProperty("头像")
  @TableField("icon")
  private String icon;


}
